from django.db import models


# Create your models here.
class RepairLog(models.Model):
    id = models.OneToOneField('pre_repair_logs.PreRepairLog',
                              on_delete=models.CASCADE,
                              primary_key=True)
    date = models.DateField()
    note = models.CharField(max_length=512)
    cost = models.IntegerField()

    def __str__(self):
        return self.note

    class Meta:
        verbose_name = '维修'
        verbose_name_plural = '维修日志'
